//
//  CompanyTotalCell.m
//  GasBusiness
//
//  Created by zfc on 2021/8/1.
//

#import "CompanyTotalCell.h"

@implementation CompanyTotalCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setUI {

    self.contentView.backgroundColor = ClearColor;
    self.backgroundColor = ClearColor;

    UIView *backView = [[UIView alloc] init];
    backView.backgroundColor = WhiteColor;
    backView.cornerRadius = 8;
    [self.contentView addSubview:backView];
    [backView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
        make.leading.equalTo(self.contentView).offset(15);
        make.top.equalTo(self.contentView);
    }];

    UILabel *titleLab = [[UILabel alloc] init];
    titleLab.font = [UIFont systemFontOfSize:16 weight:UIFontWeightBold];
    titleLab.textColor = Color333;
    [backView addSubview:titleLab];
    self.titleLab = titleLab;
    [titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(backView);
        make.leading.equalTo(backView).offset(15);
    }];

    UIImageView *nextImgV = [[UIImageView alloc] init];
    nextImgV.image = [UIImage imageNamed:@"sc_ic_more1"];
    [backView addSubview:nextImgV];
    [nextImgV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(backView);
        make.trailing.equalTo(backView).offset(-15);
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
